package com.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

    @RequestMapping("/log")
    public ModelAndView log(){

        System.out.println("资源启动");

        ModelAndView model = new ModelAndView();

        model.addObject("name","于金彪");

        model.setViewName("index");

        return model;

    }

}
